/**
 * Copyright:  Copyright (c) 2013
 *
 * @FileName		: ProfitAndLossDivisionServiceImpl.java
 * @PageName		: 손익현황 - 사업부별
 * @Date			: 오후 12:01:16
 * @LastModifier	: 최경민
 * @LastModifyDate	: 
 * @LastModifier	: 
 * Change history	:
 */
package com.pulp.management.service.impl;

import java.sql.SQLException;
import java.util.List;

import com.pulp.management.dao.ProfitAndLossDivisionDAO;
import com.pulp.management.model.ProfitAndLossDivisionInfo;
import com.pulp.management.service.ProfitAndLossDivisionService;

/**
 * @author 최경민
 *
 */
public class ProfitAndLossDivisionServiceImpl implements ProfitAndLossDivisionService {

	private ProfitAndLossDivisionDAO profitAndLossDivisionDAO;
	
	/**
	 * ProfitAndLossDivisionDAO 객체를 반환한다.
	 *
	 * @return the profit and loss division dao
	 */
	public ProfitAndLossDivisionDAO getProfitAndLossDivisionDAO (){
		return profitAndLossDivisionDAO; 
	}
	
	/**
	 * ProfitAndLossDivisionDAO 객체를 설정한다.
	 *
	 * @param dao the new profit and loss division dao
	 */
	public void setProfitAndLossDivisionDAO (ProfitAndLossDivisionDAO dao){
		this.profitAndLossDivisionDAO = profitAndLossDivisionDAO;
	}
	/* (non-Javadoc)
	 * @see com.pulp.management.service.ProfitAndLossDivisionService#getDivisionColumnChartList()
	 */
	@Override
	public List<ProfitAndLossDivisionInfo> getDivisionColumnChartList() throws SQLException {
		return profitAndLossDivisionDAO.getDivisionColumnChartList();
	}

	/* (non-Javadoc)
	 * @see com.pulp.management.service.ProfitAndLossDivisionService#getDivisionTotalColumnChartList()
	 */
	@Override
	public List<ProfitAndLossDivisionInfo> getDivisionTotalColumnChartList() throws SQLException {
		return profitAndLossDivisionDAO.getDivisionTotalColumnChartList();
	}

	/* (non-Javadoc)
	 * @see com.pulp.management.service.ProfitAndLossDivisionService#getDivisionTableList()
	 */
	@Override
	public List<ProfitAndLossDivisionInfo> getDivisionTableList() throws SQLException {
		return profitAndLossDivisionDAO.getDivisionTableList();
	}

	/* (non-Javadoc)
	 * @see com.pulp.management.service.ProfitAndLossDivisionService#getDivisionPieChartList()
	 */
	@Override
	public List<ProfitAndLossDivisionInfo> getDivisionPieChartList() throws SQLException {
		return profitAndLossDivisionDAO.getDivisionPieChartList();
	}

}
